package com.hbzjt2012.lesson06;

import javax.swing.*;
import java.awt.*;

public class TestTextDemo02 extends JFrame {

    public TestTextDemo02(){
        Container container = this.getContentPane();

        // 面板

        JPasswordField passwordField = new JPasswordField(); // ****
        passwordField.setEchoChar('*');

        container.add(passwordField);

        this.setVisible(true);
        this.setSize(500,350);
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {
        new TestTextDemo02();

    }
}

